home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11540 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ida.his.se!henrik
  2. From: henrik@ida.his.se (Henrik Nordstrom)
  3. Newsgroups: comp.lang.c++,comp.os.linux.development.apps,comp.os.linux.misc
  4. Subject: Re: Are str* functions okay in C++?
  5. Followup-To: comp.lang.c++,comp.os.linux.development.apps,comp.os.linux.misc
  6. Date: 14 Mar 1996 21:38:20 GMT
  7. Organization: University of Skoevde
  8. Message-ID: <4ia3kc$1jb@mhost.ida.his.se>
  9. References: <4hpvi0$gt6@news.platinum.com> <Do54G9.4Ly.0.server@indra.com>
  10. NNTP-Posting-Host: august.ida.his.se
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Bear Giles (bear@) wrote:
  14.  
  15. : The idea is that "buffer" is a captive memory leak -- you allocate a
  16. : large buffer once and never release it.  That increases the runtime
  17. : size of your program, but eliminates the performance hit and possible
  18. : memory leaks from repeatedly allocating and deleting small blocks.
  19.  
  20. I prefer to use local variables instead (and of course running in
  21. an environment where the stack space is enought). In most systems
  22. this has no or very low performance degration, supports multithreading,
  23. no memory leaks,...
  24.  
  25. ---
  26. Henrik Nordstrom
  27. University of Skoevde
  28. Sweden
  29.  
  30.